 <%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>


		<div id="banner">&nbsp;</div>
		<div id="content">  
			<div class="post">
				<h2 class="title">Dispatch</h2> 
				<div class="entry">
					<p>
					<script type="text/javascript">
			            function submitForm()
			            {
			                document.forms[0].action = "UserAction.do?method=add";
			                document.forms[0].submit();
			            }
			        </script>
					
					
					 <html:form action="UserAction" >
			            <table>
			                <tr>
			                    <td>
			                        <bean:write name="UserForm" property="message" />
			                    </td>
			                </tr>
			                <tr>
			                    <td>
			                        <html:submit value="Add" onclick="submitForm()" />
			                    </td>
			                </tr>
			                <tr>
			                    <td>
			                        <html:submit property="method" value="update" /> 
			                    </td>
			                </tr>
			                <tr>
			                    <td>
			                        <html:submit  property="method" >delete</html:submit>
			                    </td>
			                </tr>
			            </table>
			        </html:form>
					</p>
				</div>
			</div>
		</div>
		<!-- end #content -->
